/*
 * @Author: yangjinlai
 * @Date: 2020-09-01
 *
 * 资产配置模块入口页

   资产配置列表、step步骤页面全都从此入口打开
 */
<template>
    <section class="">

    </section>

</template>

<script>

// import "./assetList.less";

export default {
    name: "zcpz",

    data(){

        return{

            //页面类型，list-资产配置列表页，form-新建资产配置页
            pageType: this.$route.query.pageType,

            //pageType为form时需要
            //type-add表示为新建资产配置
            //type-cus表示为客户详情页进入的，或新建跟踪客户提交后返回的
            //type-edit的场景此处没有，所以不会有type为edit的情况
            type: this.$route.query.type,

            //type为cus时，url上会有app给的参数，customerSort和customerId
            customerSort: this.$route.query.customerSort,
            customerId: this.$route.query.customerId,
        }

    },
    created() {
        var that = this;
        let aaa = this.$route.query
        cole.log('this.pageType ', this.pageType )

        if( this.pageType == 'list'){
            //打开资产配置列表页
            this.$router.push({path: goUrl.zcpzAssetList})
        }
        else if( this.pageType == 'form' ){
            //打开资产配置的步骤页面
            if( this.type == 'add'){
                //新建资产配置
                this.$router.push({path: goUrl.zcpzStepUrl})
            }
            else if( this.type == 'cus'){
                //编辑资产配置
                this.$router.push({path: goUrl.zcpzStepUrl, query:{ type: this.type, customerId: this.customerId, customerSort: this.customerSort}})
            }
        }


    },
};``
</script>
